package com.neu.entity;

public class SalesEmployee extends ColaEmployee {
	private double month_e;
	private double tc;
	public SalesEmployee() {
		super();
	}
	public SalesEmployee(double month_e, double tc,String name,int month) {
		super(name,month);
		this.month_e = month_e;
		this.tc = tc;
	}
	public double getMonth_e() {
		return month_e;
	}
	public void setMonth_e(double month_e) {
		this.month_e = month_e;
	}
	public double getTc() {
		return tc;
	}
	public void setTc(double tc) {
		this.tc = tc;
	}
	@Override
	public double getSalary(int month) {
		double month_sal=month_e*tc;
		if(super.getMonth()==month) {
			month_sal+=100;
		}
		return month_sal;
	}
	
}
